import axios from './axios'
import base from "./base";
const api = {
    login(data) {
        return axios({
            url: '/user/weblogin',
            data,
            method: 'post'
        })
    },
    getUSerInfo(data) {
        return axios({
            url: '/user/getUSerInfo',
            method: 'get'
        })
    },
    getDetail(params) {
        return axios({
            url: '/yinyue/getDetail',
            method: 'get',
            params
        })
    },
    shoucang(params) {
        return axios({
            url: '/dingcai/shoucang',
            method: 'get',
            params
        })
    },
    dowlon(params) {
        return axios({
            url: '/dowlon',
            method: 'get',
            params,
            responseType: 'blob'
        })
    },
    reg(data) {
        return axios({
            url: '/user/reg',
            method: 'post',
            data
        })
    },
    addPinglun(data) {
        return axios({
            url: '/pinglun/add',
            method: 'post',
            data
        })
    },
    gedanlist(params) {
        return axios({
            url: '/gedan/list',
            method: 'get',
            params
        })
    },
    getTuijian(params) {
        return axios({
            url: '/yinyue/getTuijian',
            method: 'get',
            params
        })
    },
    getGeshouData(params) {
        return axios({
            url: '/geshou/getData',
            method: 'get',
            params
        })
    },
    getData(params) {
        return axios({
            url: '/gedan/getData',
            method: 'get',
            params
        })
    },
    addGedan(params) {
        return axios({
            url: '/dingcai/addGedan',
            method: 'get',
            params
        })
    },
    addgedan(data) {
        return axios({
            url: '/gedan/add',
            method: 'post',
            data
        })
    },
    editNum(data) {
        return axios({
            url: '/yinyue/edit',
            method: 'post',
            data
        })
    },
    pinglunlist(params) {
        return axios({
            url: '/pinglun/list',
            method: 'get',
            params
        })
    },
    dingcaiList(params) {
        return axios({
            url: '/dingcai/list',
            method: 'get',
            params
        })
    },
    getGeshou(params) {
        return axios({
            url: '/geshou/list',
            method: 'get',
            params
        })
    },
    getYinyue(params) {
        return axios({
            url: '/yinyue/list',
            method: 'get',
            params
        })
    },

};
export default api;